package edu.sctu.practice.class02.renzhaoxu.test12;

/**
 * Created by Administrator on 2015/10/21.
 */
public class Car {


    private int tires;
    private String color;
    private int load;

    public Car(int tires) {
        this.tires = tires;
        System.out.println("轮胎数量" + tires);
    }

    public Car(String color) {
        this.color = color;
        System.out.println("颜色" + color);
    }

    public Car(int tires, String color, int load) {
        this.load = load;
        System.out.println("重量"+load);
    }


    void accelerate(){

        System.out.println("加速");

    }


    void decelerate(){

        System.out.println("减速");

    }


    void stop(){

        System.out.println("停车");

    }


    public static void main(String[] args) {

        Car audi = new Car(4,"白", 1400);

           audi.accelerate();
           audi.decelerate();
           audi.stop();

    }
}